package com.hlkj.baojin.service;


import com.hlkj.baojin.entity.PasswordSet;
import com.hlkj.baojin.entity.User;

public interface AuthService {
    User register(User userToAdd);

    String login(String username, String password, String ip);

    /**
     * 刷新Token
     *
     * @param oldToken
     * @return 新Token
     */
    String refresh(String oldToken);

    void getCode(String username);

    Boolean vadicate(String password);

    void forgetPassword(PasswordSet passwordSet);

    void resetPassword(PasswordSet passwordSet);


}
